<?php

namespace common\model;

use think\model\RelationModel;

/**
 * 剪辑工程
 */
class EditProjectModel extends RelationModel
{


    // 自动完成
    protected $_auto = [
        ['tenant_id', 'auto_fill_tenant_id', self::MODEL_INSERT, 'function'],
        ['created_by', 'fill_created_by', self::MODEL_INSERT, 'function'],
        ['updated_by', 'fill_created_by', self::MODEL_UPDATE, 'function'],
        ['created', 'time', self::MODEL_INSERT, 'function'],
        ['updated', 'time', self::MODEL_UPDATE, 'function'],
        ['json', 'json_encode', self::EXISTS_VALIDATE, 'function'],
    ];
}